Applied patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
authorManish Singh <yosh@gimp.org>
Mon, 1 Oct 2001 05:20:43 +0000 (05:20 +0000)
committerManish Singh <yosh@src.gnome.org>
Mon, 1 Oct 2001 05:20:43 +0000 (05:20 +0000)
Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>

        * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
        patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
        centers the child in relation to the to indicator height.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcheckbutton.c

index f5d11a17083d354f9743457aef8185616e1bd095..f3e2c00e0f7b39713751271854066c811c95f623 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,12 +1,20 @@
+Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
+
+       * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
+       patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
+       centers the child in relation to the to indicator height.
+
 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
 
-       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
+       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
+       correct
 
 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
 
-    * gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int 
-      and changed from g_value_get_enum to g_value_get_int instead. 
-      Probadly a better way to fix the problem :-)
+       * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
+       property code using g_param_spec_int and changed from
+       g_value_get_enum to g_value_get_int instead. Probably a better way
+       to fix the problem :-)
 
 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
 
index f5d11a17083d354f9743457aef8185616e1bd095..f3e2c00e0f7b39713751271854066c811c95f623 100644 (file)
@@ -1,12 +1,20 @@
+Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
+
+       * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
+       patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
+       centers the child in relation to the to indicator height.
+
 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
 
-       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
+       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
+       correct
 
 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
 
-    * gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int 
-      and changed from g_value_get_enum to g_value_get_int instead. 
-      Probadly a better way to fix the problem :-)
+       * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
+       property code using g_param_spec_int and changed from
+       g_value_get_enum to g_value_get_int instead. Probably a better way
+       to fix the problem :-)
 
 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
 
index f5d11a17083d354f9743457aef8185616e1bd095..f3e2c00e0f7b39713751271854066c811c95f623 100644 (file)
@@ -1,12 +1,20 @@
+Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
+
+       * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
+       patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
+       centers the child in relation to the to indicator height.
+
 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
 
-       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
+       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
+       correct
 
 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
 
-    * gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int 
-      and changed from g_value_get_enum to g_value_get_int instead. 
-      Probadly a better way to fix the problem :-)
+       * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
+       property code using g_param_spec_int and changed from
+       g_value_get_enum to g_value_get_int instead. Probably a better way
+       to fix the problem :-)
 
 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
 
index f5d11a17083d354f9743457aef8185616e1bd095..f3e2c00e0f7b39713751271854066c811c95f623 100644 (file)
@@ -1,12 +1,20 @@
+Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
+
+       * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
+       patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
+       centers the child in relation to the to indicator height.
+
 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
 
-       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
+       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
+       correct
 
 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
 
-    * gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int 
-      and changed from g_value_get_enum to g_value_get_int instead. 
-      Probadly a better way to fix the problem :-)
+       * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
+       property code using g_param_spec_int and changed from
+       g_value_get_enum to g_value_get_int instead. Probably a better way
+       to fix the problem :-)
 
 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
 
index f5d11a17083d354f9743457aef8185616e1bd095..f3e2c00e0f7b39713751271854066c811c95f623 100644 (file)
@@ -1,12 +1,20 @@
+Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
+
+       * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
+       patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
+       centers the child in relation to the to indicator height.
+
 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
 
-       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
+       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
+       correct
 
 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
 
-    * gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int 
-      and changed from g_value_get_enum to g_value_get_int instead. 
-      Probadly a better way to fix the problem :-)
+       * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
+       property code using g_param_spec_int and changed from
+       g_value_get_enum to g_value_get_int instead. Probably a better way
+       to fix the problem :-)
 
 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
 
index f5d11a17083d354f9743457aef8185616e1bd095..f3e2c00e0f7b39713751271854066c811c95f623 100644 (file)
@@ -1,12 +1,20 @@
+Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
+
+       * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
+       patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
+       centers the child in relation to the to indicator height.
+
 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
 
-       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
+       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
+       correct
 
 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
 
-    * gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int 
-      and changed from g_value_get_enum to g_value_get_int instead. 
-      Probadly a better way to fix the problem :-)
+       * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
+       property code using g_param_spec_int and changed from
+       g_value_get_enum to g_value_get_int instead. Probably a better way
+       to fix the problem :-)
 
 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
 
index f5d11a17083d354f9743457aef8185616e1bd095..f3e2c00e0f7b39713751271854066c811c95f623 100644 (file)
@@ -1,12 +1,20 @@
+Sun Sep 30 22:15:52 2001  Manish Singh  <yosh@gimp.org>
+
+       * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied
+       patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically
+       centers the child in relation to the to indicator height.
+
 Sun Sep 30 15:11:59 2001  Jonathan Blandford  <jrb@redhat.com>
 
-       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
+       * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST
+       correct
 
 Sun Sep 30  07:01:42 2001 CEST <mikeh@bahnhof.se>
 
-    * gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int 
-      and changed from g_value_get_enum to g_value_get_int instead. 
-      Probadly a better way to fix the problem :-)
+       * gtk/gtkcellrenderertext.c: I reverted back to old "weight"
+       property code using g_param_spec_int and changed from
+       g_value_get_enum to g_value_get_int instead. Probably a better way
+       to fix the problem :-)
 
 Sun Sep 30  05:31:32 2001 CEST Mikael Hermansson <tyan@linux.se>
 
index d5748770236d547c4b424a9ba91255023964dd23..8616180a594c1be6fc5cd51356229451079ac5ee 100644 (file)
@@ -283,14 +283,16 @@ gtk_check_button_size_allocate (GtkWidget     *widget,
        {
          gint border_width = GTK_CONTAINER (widget)->border_width;
  
-         child_allocation.x = (border_width + indicator_size + indicator_spacing * 3 + 1 +
-                               widget->allocation.x);
-         child_allocation.y = border_width + 1 + widget->allocation.y;
          child_allocation.width = MIN (GTK_BIN (button)->child->requisition.width,
                                        allocation->width -
                                        ((border_width + 1) * 2 + indicator_size + indicator_spacing * 3));
          child_allocation.height = MIN (GTK_BIN (button)->child->requisition.height,
                                         allocation->height - (border_width + 1) * 2);
+         child_allocation.x = (border_width + indicator_size + indicator_spacing * 3 + 1 +
+                               widget->allocation.x);
+         child_allocation.y = widget->allocation.y +
+                              (allocation->height - child_allocation.height) / 2;
+
          
          if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
            child_allocation.x = allocation->x + allocation->width